package com.tancire.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

import java.util.List;

/**
 * APP页面配置对象 app_module
 *
 * @author chenchao
 * @date 2024-01-15
 */
public class AppModule extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 位置编码
     */
    @Excel(name = "位置编码")
    private String posCode;

    /**
     * 位置标题
     */
    @Excel(name = "位置标题")
    private String posTitle;

    /**
     * 状态 0 显示 1 隐藏
     */
    @Excel(name = "状态 0 显示 1 隐藏")
    private Integer posStatus;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer posSort;

    /**
     * 跳转类型
     */
    @Excel(name = "跳转类型 ")
    private String posJumpType;

    /**
     * 点击跳转页面
     */
    @Excel(name = "点击跳转页面")
    private String posJump;

    /**
     * 跳转携带数据
     */
    @Excel(name = "跳转携带数据")
    private String posJumpData;

    /**
     * 明细列表
     */
    private List<AppModuleItem> moduleItemList;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPosCode(String posCode) {
        this.posCode = posCode;
    }

    public String getPosCode() {
        return posCode;
    }

    public void setPosTitle(String posTitle) {
        this.posTitle = posTitle;
    }

    public String getPosTitle() {
        return posTitle;
    }

    public void setPosStatus(Integer posStatus) {
        this.posStatus = posStatus;
    }

    public Integer getPosStatus() {
        return posStatus;
    }

    public void setPosSort(Integer posSort) {
        this.posSort = posSort;
    }

    public Integer getPosSort() {
        return posSort;
    }

    public void setPosJumpType(String posJumpType) {
        this.posJumpType = posJumpType;
    }

    public String getPosJumpType() {
        return posJumpType;
    }

    public void setPosJump(String posJump) {
        this.posJump = posJump;
    }

    public String getPosJump() {
        return posJump;
    }

    public void setPosJumpData(String posJumpData) {
        this.posJumpData = posJumpData;
    }

    public String getPosJumpData() {
        return posJumpData;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public List<AppModuleItem> getModuleItemList() {
        return moduleItemList;
    }

    public void setModuleItemList(List<AppModuleItem> moduleItemList) {
        this.moduleItemList = moduleItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("posCode", getPosCode())
                .append("posTitle", getPosTitle())
                .append("posStatus", getPosStatus())
                .append("posSort", getPosSort())
                .append("posJumpType", getPosJumpType())
                .append("posJump", getPosJump())
                .append("posJumpData", getPosJumpData())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
